// 下载功能
function dowload(fileName: string,data: any): any{
    const blob = new Blob([data], {type: 'application/octet-stream'} )
    const a = document.createElement('a')
    const herf = window.URL.createObjectURL(blob)
    a.href = herf
    a.download = decodeURI(fileName)
    document.body.append(a)
    a.click()
    document.body.removeChild(a)
    window.URL.revokeObjectURL(herf)
}
export default dowload